import { request } from '@/utils/request'

export const getArticles = (params = {}) => {
  return request({
    method: 'GET',
    url: '/api/articles',
    params
  })
}

export const createArticle = (article) => {
  return request({
    method: 'POST',
    url: '/api/articles',
    data: {
      article
    }
  })
}
